home *** CD-ROM | disk | FTP | other *** search
- counter = 0;
- stop();
- onEnterFrame = function()
- {
- counter++;
- if(counter > 100 / _parent.playerSpeed)
- {
- counter = 0;
- if(_currentframe != _totalframes)
- {
- if(_parent.playerSpeed > 100)
- {
- gotoAndStop(_currentframe + Math.round(_parent.playerSpeed / 100));
- }
- else
- {
- gotoAndStop(_currentframe + 1);
- }
- }
- else
- {
- gotoAndStop(1);
- }
- }
- };
-